3.1.70 \(\int x (d+c d x) (a+b \text {arctanh}(c x))^2 \, dx\) [70]

3.1.70.1 Optimal result
3.1.70.2 Mathematica [A] (verified)
3.1.70.3 Rubi [A] (verified)
3.1.70.4 Maple [A] (verified)
3.1.70.5 Fricas [F]
3.1.70.6 Sympy [F]
3.1.70.7 Maxima [F]
3.1.70.8 Giac [F]
3.1.70.9 Mupad [F(-1)]

3.1.70.1 Optimal result

Integrand size = 18, antiderivative size = 196 \[ \int x (d+c d x) (a+b \text {arctanh}(c x))^2 \, dx=\frac {a b d x}{c}+\frac {b^2 d x}{3 c}-\frac {b^2 d \text {arctanh}(c x)}{3 c^2}+\frac {b^2 d x \text {arctanh}(c x)}{c}+\frac {1}{3} b d x^2 (a+b \text {arctanh}(c x))-\frac {d (a+b \text {arctanh}(c x))^2}{6 c^2}+\frac {1}{2} d x^2 (a+b \text {arctanh}(c x))^2+\frac {1}{3} c d x^3 (a+b \text {arctanh}(c x))^2-\frac {2 b d (a+b \text {arctanh}(c x)) \log \left (\frac {2}{1-c x}\right )}{3 c^2}+\frac {b^2 d \log \left (1-c^2 x^2\right )}{2 c^2}-\frac {b^2 d \operatorname {PolyLog}\left (2,1-\frac {2}{1-c x}\right )}{3 c^2} \]

output
a*b*d*x/c+1/3*b^2*d*x/c-1/3*b^2*d*arctanh(c*x)/c^2+b^2*d*x*arctanh(c*x)/c+ 
1/3*b*d*x^2*(a+b*arctanh(c*x))-1/6*d*(a+b*arctanh(c*x))^2/c^2+1/2*d*x^2*(a 
+b*arctanh(c*x))^2+1/3*c*d*x^3*(a+b*arctanh(c*x))^2-2/3*b*d*(a+b*arctanh(c 
*x))*ln(2/(-c*x+1))/c^2+1/2*b^2*d*ln(-c^2*x^2+1)/c^2-1/3*b^2*d*polylog(2,1 
-2/(-c*x+1))/c^2
 
3.1.70.2 Mathematica [A] (verified)

Time = 0.43 (sec) , antiderivative size = 201, normalized size of antiderivative = 1.03 \[ \int x (d+c d x) (a+b \text {arctanh}(c x))^2 \, dx=\frac {d \left (6 a b c x+2 b^2 c x+3 a^2 c^2 x^2+2 a b c^2 x^2+2 a^2 c^3 x^3+b^2 \left (-5+3 c^2 x^2+2 c^3 x^3\right ) \text {arctanh}(c x)^2+2 b \text {arctanh}(c x) \left (a c^2 x^2 (3+2 c x)+b \left (-1+3 c x+c^2 x^2\right )-2 b \log \left (1+e^{-2 \text {arctanh}(c x)}\right )\right )+3 a b \log (1-c x)-3 a b \log (1+c x)+3 b^2 \log \left (1-c^2 x^2\right )+2 a b \log \left (-1+c^2 x^2\right )+2 b^2 \operatorname {PolyLog}\left (2,-e^{-2 \text {arctanh}(c x)}\right )\right )}{6 c^2} \]

input
Integrate[x*(d + c*d*x)*(a + b*ArcTanh[c*x])^2,x]
 
output
(d*(6*a*b*c*x + 2*b^2*c*x + 3*a^2*c^2*x^2 + 2*a*b*c^2*x^2 + 2*a^2*c^3*x^3 
+ b^2*(-5 + 3*c^2*x^2 + 2*c^3*x^3)*ArcTanh[c*x]^2 + 2*b*ArcTanh[c*x]*(a*c^ 
2*x^2*(3 + 2*c*x) + b*(-1 + 3*c*x + c^2*x^2) - 2*b*Log[1 + E^(-2*ArcTanh[c 
*x])]) + 3*a*b*Log[1 - c*x] - 3*a*b*Log[1 + c*x] + 3*b^2*Log[1 - c^2*x^2] 
+ 2*a*b*Log[-1 + c^2*x^2] + 2*b^2*PolyLog[2, -E^(-2*ArcTanh[c*x])]))/(6*c^ 
2)
 
3.1.70.3 Rubi [A] (verified)

Time = 0.60 (sec) , antiderivative size = 196, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {6502, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int x (c d x+d) (a+b \text {arctanh}(c x))^2 \, dx\)

\(\Big \downarrow \) 6502

\(\displaystyle \int \left (c d x^2 (a+b \text {arctanh}(c x))^2+d x (a+b \text {arctanh}(c x))^2\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle -\frac {d (a+b \text {arctanh}(c x))^2}{6 c^2}-\frac {2 b d \log \left (\frac {2}{1-c x}\right ) (a+b \text {arctanh}(c x))}{3 c^2}+\frac {1}{3} c d x^3 (a+b \text {arctanh}(c x))^2+\frac {1}{2} d x^2 (a+b \text {arctanh}(c x))^2+\frac {1}{3} b d x^2 (a+b \text {arctanh}(c x))+\frac {a b d x}{c}-\frac {b^2 d \text {arctanh}(c x)}{3 c^2}+\frac {b^2 d x \text {arctanh}(c x)}{c}-\frac {b^2 d \operatorname {PolyLog}\left (2,1-\frac {2}{1-c x}\right )}{3 c^2}+\frac {b^2 d \log \left (1-c^2 x^2\right )}{2 c^2}+\frac {b^2 d x}{3 c}\)

input
Int[x*(d + c*d*x)*(a + b*ArcTanh[c*x])^2,x]
 
output
(a*b*d*x)/c + (b^2*d*x)/(3*c) - (b^2*d*ArcTanh[c*x])/(3*c^2) + (b^2*d*x*Ar 
cTanh[c*x])/c + (b*d*x^2*(a + b*ArcTanh[c*x]))/3 - (d*(a + b*ArcTanh[c*x]) 
^2)/(6*c^2) + (d*x^2*(a + b*ArcTanh[c*x])^2)/2 + (c*d*x^3*(a + b*ArcTanh[c 
*x])^2)/3 - (2*b*d*(a + b*ArcTanh[c*x])*Log[2/(1 - c*x)])/(3*c^2) + (b^2*d 
*Log[1 - c^2*x^2])/(2*c^2) - (b^2*d*PolyLog[2, 1 - 2/(1 - c*x)])/(3*c^2)
 

3.1.70.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 6502
Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e 
_.)*(x_))^(q_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*ArcTanh[c*x])^p, ( 
f*x)^m*(d + e*x)^q, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[p, 0] 
 && IntegerQ[q] && (GtQ[q, 0] || NeQ[a, 0] || IntegerQ[m])
 
3.1.70.4 Maple [A] (verified)

Time = 0.26 (sec) , antiderivative size = 249, normalized size of antiderivative = 1.27

method result size
parts \(a^{2} d \left (\frac {1}{3} c \,x^{3}+\frac {1}{2} x^{2}\right )+\frac {b^{2} d \left (\frac {\operatorname {arctanh}\left (c x \right )^{2} c^{3} x^{3}}{3}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )^{2}}{2}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )}{3}+c x \,\operatorname {arctanh}\left (c x \right )+\frac {5 \,\operatorname {arctanh}\left (c x \right ) \ln \left (c x -1\right )}{6}-\frac {\operatorname {arctanh}\left (c x \right ) \ln \left (c x +1\right )}{6}-\frac {\operatorname {dilog}\left (\frac {c x}{2}+\frac {1}{2}\right )}{3}-\frac {5 \ln \left (c x -1\right ) \ln \left (\frac {c x}{2}+\frac {1}{2}\right )}{12}+\frac {5 \ln \left (c x -1\right )^{2}}{24}-\frac {\left (\ln \left (c x +1\right )-\ln \left (\frac {c x}{2}+\frac {1}{2}\right )\right ) \ln \left (-\frac {c x}{2}+\frac {1}{2}\right )}{12}+\frac {\ln \left (c x +1\right )^{2}}{24}+\frac {c x}{3}+\frac {2 \ln \left (c x -1\right )}{3}+\frac {\ln \left (c x +1\right )}{3}\right )}{c^{2}}+\frac {2 a b d \left (\frac {c^{3} x^{3} \operatorname {arctanh}\left (c x \right )}{3}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )}{2}+\frac {c^{2} x^{2}}{6}+\frac {c x}{2}+\frac {5 \ln \left (c x -1\right )}{12}-\frac {\ln \left (c x +1\right )}{12}\right )}{c^{2}}\) \(249\)
derivativedivides \(\frac {a^{2} d \left (\frac {1}{3} c^{3} x^{3}+\frac {1}{2} c^{2} x^{2}\right )+b^{2} d \left (\frac {\operatorname {arctanh}\left (c x \right )^{2} c^{3} x^{3}}{3}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )^{2}}{2}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )}{3}+c x \,\operatorname {arctanh}\left (c x \right )+\frac {5 \,\operatorname {arctanh}\left (c x \right ) \ln \left (c x -1\right )}{6}-\frac {\operatorname {arctanh}\left (c x \right ) \ln \left (c x +1\right )}{6}-\frac {\operatorname {dilog}\left (\frac {c x}{2}+\frac {1}{2}\right )}{3}-\frac {5 \ln \left (c x -1\right ) \ln \left (\frac {c x}{2}+\frac {1}{2}\right )}{12}+\frac {5 \ln \left (c x -1\right )^{2}}{24}-\frac {\left (\ln \left (c x +1\right )-\ln \left (\frac {c x}{2}+\frac {1}{2}\right )\right ) \ln \left (-\frac {c x}{2}+\frac {1}{2}\right )}{12}+\frac {\ln \left (c x +1\right )^{2}}{24}+\frac {c x}{3}+\frac {2 \ln \left (c x -1\right )}{3}+\frac {\ln \left (c x +1\right )}{3}\right )+2 a b d \left (\frac {c^{3} x^{3} \operatorname {arctanh}\left (c x \right )}{3}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )}{2}+\frac {c^{2} x^{2}}{6}+\frac {c x}{2}+\frac {5 \ln \left (c x -1\right )}{12}-\frac {\ln \left (c x +1\right )}{12}\right )}{c^{2}}\) \(252\)
default \(\frac {a^{2} d \left (\frac {1}{3} c^{3} x^{3}+\frac {1}{2} c^{2} x^{2}\right )+b^{2} d \left (\frac {\operatorname {arctanh}\left (c x \right )^{2} c^{3} x^{3}}{3}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )^{2}}{2}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )}{3}+c x \,\operatorname {arctanh}\left (c x \right )+\frac {5 \,\operatorname {arctanh}\left (c x \right ) \ln \left (c x -1\right )}{6}-\frac {\operatorname {arctanh}\left (c x \right ) \ln \left (c x +1\right )}{6}-\frac {\operatorname {dilog}\left (\frac {c x}{2}+\frac {1}{2}\right )}{3}-\frac {5 \ln \left (c x -1\right ) \ln \left (\frac {c x}{2}+\frac {1}{2}\right )}{12}+\frac {5 \ln \left (c x -1\right )^{2}}{24}-\frac {\left (\ln \left (c x +1\right )-\ln \left (\frac {c x}{2}+\frac {1}{2}\right )\right ) \ln \left (-\frac {c x}{2}+\frac {1}{2}\right )}{12}+\frac {\ln \left (c x +1\right )^{2}}{24}+\frac {c x}{3}+\frac {2 \ln \left (c x -1\right )}{3}+\frac {\ln \left (c x +1\right )}{3}\right )+2 a b d \left (\frac {c^{3} x^{3} \operatorname {arctanh}\left (c x \right )}{3}+\frac {c^{2} x^{2} \operatorname {arctanh}\left (c x \right )}{2}+\frac {c^{2} x^{2}}{6}+\frac {c x}{2}+\frac {5 \ln \left (c x -1\right )}{12}-\frac {\ln \left (c x +1\right )}{12}\right )}{c^{2}}\) \(252\)
risch \(\frac {a^{2} d \,x^{2}}{2}+\frac {a b d x}{c}+\frac {b^{2} d x}{3 c}-\frac {b^{2} d}{3 c^{2}}-\frac {4 b d a}{3 c^{2}}+\frac {b d a \,x^{2}}{3}-\frac {b^{2} d \ln \left (-c x +1\right ) x^{2}}{6}-\frac {d c a b \ln \left (-c x +1\right ) x^{3}}{3}+\left (-\frac {d \,b^{2} x^{2} \left (2 c x +3\right ) \ln \left (-c x +1\right )}{12}-\frac {b d \left (-4 c^{3} x^{3} a -6 a \,c^{2} x^{2}-2 b \,c^{2} x^{2}-6 b c x -5 b \ln \left (-c x +1\right )\right )}{12 c^{2}}\right ) \ln \left (c x +1\right )-\frac {b d a \ln \left (-c x -1\right )}{6 c^{2}}-\frac {b^{2} d \ln \left (\frac {c x}{2}+\frac {1}{2}\right ) \ln \left (-c x +1\right )}{3 c^{2}}+\frac {b^{2} d \ln \left (\frac {c x}{2}+\frac {1}{2}\right ) \ln \left (-\frac {c x}{2}+\frac {1}{2}\right )}{3 c^{2}}-\frac {d a b \ln \left (-c x +1\right ) x^{2}}{2}+\frac {d c \,b^{2} \ln \left (-c x +1\right )^{2} x^{3}}{12}-\frac {b^{2} d \ln \left (-c x +1\right ) x}{2 c}+\frac {b^{2} d \left (2 c^{3} x^{3}+3 c^{2} x^{2}-1\right ) \ln \left (c x +1\right )^{2}}{24 c^{2}}+\frac {5 d b \ln \left (-c x +1\right ) a}{6 c^{2}}+\frac {b^{2} d \operatorname {dilog}\left (-\frac {c x}{2}+\frac {1}{2}\right )}{3 c^{2}}-\frac {5 d \,b^{2} \ln \left (-c x +1\right )^{2}}{24 c^{2}}+\frac {d c \,x^{3} a^{2}}{3}+\frac {d \,b^{2} \ln \left (-c x +1\right )^{2} x^{2}}{8}-\frac {5 d \,a^{2}}{6 c^{2}}+\frac {b^{2} d \ln \left (-c x -1\right )}{3 c^{2}}+\frac {2 b^{2} d \ln \left (-c x +1\right )}{3 c^{2}}\) \(431\)

input
int(x*(c*d*x+d)*(a+b*arctanh(c*x))^2,x,method=_RETURNVERBOSE)
 
output
a^2*d*(1/3*c*x^3+1/2*x^2)+b^2*d/c^2*(1/3*arctanh(c*x)^2*c^3*x^3+1/2*c^2*x^ 
2*arctanh(c*x)^2+1/3*c^2*x^2*arctanh(c*x)+c*x*arctanh(c*x)+5/6*arctanh(c*x 
)*ln(c*x-1)-1/6*arctanh(c*x)*ln(c*x+1)-1/3*dilog(1/2*c*x+1/2)-5/12*ln(c*x- 
1)*ln(1/2*c*x+1/2)+5/24*ln(c*x-1)^2-1/12*(ln(c*x+1)-ln(1/2*c*x+1/2))*ln(-1 
/2*c*x+1/2)+1/24*ln(c*x+1)^2+1/3*c*x+2/3*ln(c*x-1)+1/3*ln(c*x+1))+2*a*b*d/ 
c^2*(1/3*c^3*x^3*arctanh(c*x)+1/2*c^2*x^2*arctanh(c*x)+1/6*c^2*x^2+1/2*c*x 
+5/12*ln(c*x-1)-1/12*ln(c*x+1))
 
3.1.70.5 Fricas [F]

\[ \int x (d+c d x) (a+b \text {arctanh}(c x))^2 \, dx=\int { {\left (c d x + d\right )} {\left (b \operatorname {artanh}\left (c x\right ) + a\right )}^{2} x \,d x } \]

input
integrate(x*(c*d*x+d)*(a+b*arctanh(c*x))^2,x, algorithm="fricas")
 
output
integral(a^2*c*d*x^2 + a^2*d*x + (b^2*c*d*x^2 + b^2*d*x)*arctanh(c*x)^2 + 
2*(a*b*c*d*x^2 + a*b*d*x)*arctanh(c*x), x)
 
3.1.70.6 Sympy [F]

\[ \int x (d+c d x) (a+b \text {arctanh}(c x))^2 \, dx=d \left (\int a^{2} x\, dx + \int a^{2} c x^{2}\, dx + \int b^{2} x \operatorname {atanh}^{2}{\left (c x \right )}\, dx + \int 2 a b x \operatorname {atanh}{\left (c x \right )}\, dx + \int b^{2} c x^{2} \operatorname {atanh}^{2}{\left (c x \right )}\, dx + \int 2 a b c x^{2} \operatorname {atanh}{\left (c x \right )}\, dx\right ) \]

input
integrate(x*(c*d*x+d)*(a+b*atanh(c*x))**2,x)
 
output
d*(Integral(a**2*x, x) + Integral(a**2*c*x**2, x) + Integral(b**2*x*atanh( 
c*x)**2, x) + Integral(2*a*b*x*atanh(c*x), x) + Integral(b**2*c*x**2*atanh 
(c*x)**2, x) + Integral(2*a*b*c*x**2*atanh(c*x), x))
 
3.1.70.7 Maxima [F]

\[ \int x (d+c d x) (a+b \text {arctanh}(c x))^2 \, dx=\int { {\left (c d x + d\right )} {\left (b \operatorname {artanh}\left (c x\right ) + a\right )}^{2} x \,d x } \]

input
integrate(x*(c*d*x+d)*(a+b*arctanh(c*x))^2,x, algorithm="maxima")
 
output
1/3*a^2*c*d*x^3 + 1/2*b^2*d*x^2*arctanh(c*x)^2 + 1/3*(2*x^3*arctanh(c*x) + 
 c*(x^2/c^2 + log(c^2*x^2 - 1)/c^4))*a*b*c*d - 1/216*(2*c^4*(2*(c^2*x^3 + 
3*x)/c^6 - 3*log(c*x + 1)/c^7 + 3*log(c*x - 1)/c^7) - 3*c^3*(x^2/c^4 + log 
(c^2*x^2 - 1)/c^6) - 648*c^3*integrate(1/9*x^3*log(c*x + 1)/(c^4*x^2 - c^2 
), x) + 9*c^2*(2*x/c^4 - log(c*x + 1)/c^5 + log(c*x - 1)/c^5) - 324*c*inte 
grate(1/9*x*log(c*x + 1)/(c^4*x^2 - c^2), x) - 6*(3*c^3*x^3*log(c*x + 1)^2 
 + (2*c^3*x^3 - 3*c^2*x^2 + 6*c*x - 6*(c^3*x^3 + 1)*log(c*x + 1))*log(-c*x 
 + 1))/c^3 - (2*(c*x - 1)^3*(9*log(-c*x + 1)^2 - 6*log(-c*x + 1) + 2) + 27 
*(c*x - 1)^2*(2*log(-c*x + 1)^2 - 2*log(-c*x + 1) + 1) + 54*(c*x - 1)*(log 
(-c*x + 1)^2 - 2*log(-c*x + 1) + 2))/c^3 + 18*log(9*c^4*x^2 - 9*c^2)/c^3 - 
 324*integrate(1/9*log(c*x + 1)/(c^4*x^2 - c^2), x))*b^2*c*d + 1/2*a^2*d*x 
^2 + 1/2*(2*x^2*arctanh(c*x) + c*(2*x/c^2 - log(c*x + 1)/c^3 + log(c*x - 1 
)/c^3))*a*b*d + 1/8*(4*c*(2*x/c^2 - log(c*x + 1)/c^3 + log(c*x - 1)/c^3)*a 
rctanh(c*x) - (2*(log(c*x - 1) - 2)*log(c*x + 1) - log(c*x + 1)^2 - log(c* 
x - 1)^2 - 4*log(c*x - 1))/c^2)*b^2*d
 
3.1.70.8 Giac [F]

\[ \int x (d+c d x) (a+b \text {arctanh}(c x))^2 \, dx=\int { {\left (c d x + d\right )} {\left (b \operatorname {artanh}\left (c x\right ) + a\right )}^{2} x \,d x } \]

input
integrate(x*(c*d*x+d)*(a+b*arctanh(c*x))^2,x, algorithm="giac")
 
output
integrate((c*d*x + d)*(b*arctanh(c*x) + a)^2*x, x)
 
3.1.70.9 Mupad [F(-1)]

Timed out. \[ \int x (d+c d x) (a+b \text {arctanh}(c x))^2 \, dx=\int x\,{\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )}^2\,\left (d+c\,d\,x\right ) \,d x \]

input
int(x*(a + b*atanh(c*x))^2*(d + c*d*x),x)
 
output
int(x*(a + b*atanh(c*x))^2*(d + c*d*x), x)